/*
 * @Description: 登录接口
 * @Author: lwx
 * @Date: 2022-06-14 16:57:21
 * @LastEditors: lwx
 * @LastEditTime: 2022-11-08 10:31:55
 */
import request from '@/utils/request'

/* 登录 */
export function login(userInfo) {
    return request({
        url: '/user',
        method: 'post',
        data: userInfo
    })
}

/* 获取用户信息 */
export function userInfo() {
    return request({
        url: 'user/info',
        method: 'get',
    })
}